import request from '@/utils/request'

// 查询悬赏榜列表
export function listPriceList(query) {
  return request({
    url: '/campus/priceList/list',
    method: 'get',
    params: query
  })
}

// 查询悬赏榜详细
export function getPriceList(offerId) {
  return request({
    url: '/campus/priceList/' + offerId,
    method: 'get'
  })
}

// 新增悬赏榜
export function addPriceList(data) {
  return request({
    url: '/campus/priceList',
    method: 'post',
    data: data
  })
}

// 修改悬赏榜
export function updatePriceList(data) {
  return request({
    url: '/campus/priceList',
    method: 'put',
    data: data
  })
}

// 删除悬赏榜
export function delPriceList(offerId) {
  return request({
    url: '/campus/priceList/' + offerId,
    method: 'delete'
  })
}

// 导出悬赏榜
export function exportPriceList(query) {
  return request({
    url: '/campus/priceList/export',
    method: 'get',
    params: query
  })
}